package cn.cvs.service.impl;

import cn.cvs.dao.RentMapper;
import cn.cvs.pojo.Rent;
import cn.cvs.service.RentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RentServiceImpl implements RentService {
    @Resource
    private RentMapper rentMapper;
    @Override
    public List<Rent> list(String userName) {
        return rentMapper.list(userName);
    }

    @Override
    public int add(Rent rent) {
        int result =rentMapper.add(rent);
        return result;
    }

    @Override
    public int del(Integer id) {
        int result = rentMapper.del(id);
        return result;
    }

}
